<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	pageContext.setAttribute("path",path);
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>权限管理</title>

<jsp:include page="../../head.jsp" />

<style type="text/css">
#main_left_menu .function{
	padding:1px;
}
#main_left_menu .function:hover{
	background-color:#ccc;
}
</style>

<script type="text/javascript">
Common.path = "${path}";
$(function(){
	//计算当前浏览器高度和宽度。
	var height = $(window).height();
	$("#main1").css("height",height);
	$('#main1').layout(); 
	
	$(window).resize( function(){
		var height = $(window).height();
		$("#main1").css("height",height);
		$('#main1').layout(); 
	});
	
	//左侧导航栏
	$("#main_left_menu").accordion({
		fit:true
	});
});

</script>

</head>
<body class="">
<div id="main1" class="easyui-layout" style="">

	<div region="north"  style="height:50px" border="false">
		<div id="">
			<span>欢迎您,${sessionScope.loginUser.nickname}!,</span>
			<span><a href="${path}/logout" >登出</a></span>
		</div>
	</div>
	
	<div  region="west" split="true"  style="width:150px; " border="false" >
		<div id="main_left_menu" class="easyui-accordion"  >
			<div title="权限管理"  style="" >
				<div class="function" style="" >
					<div style="margin:auto;width:50px;"><a href="javascript:void(0)" onclick="User.loadUserList()" >用户管理</a></div>
				</div>
				<div class="function">
					<div style="margin:auto;width:50px;"><a href="javascript:void(0)" onclick="RoleGroup.loadRoleGroupList()"  >角色管理</a></div>
				</div>
				<div class="function">
					
				</div>
			</div>
			<div title="title2"  ></div>
			<div title="title2" ></div>
		</div>
	</div>

	<div region="center"  >
		<div id="main_right">
			<jsp:include page="user_index.jsp" />
		</div>
	</div>
	
	<div region="south"  style="height:20px" border="false" >
		<div id="main_bottom" style="width:100px;margin:0 auto">版权所有</div>
	</div>
</div>
</body>
</html>










<!-- 
<script type="text/javascript">
$(function(){
	$('#user_datagrid').datagrid({
		//view: detailview,
		//fit:true,
		striped:true,
		pagination:true,
	    fitColumns:true,nowrap:false,noheader:true,
	    //height:500,
	    detailFormatter:function(index,row){   
	        return '<div style="padding: 5px" id="userData-' + index + '"></div>';   
	    },
	    columns:[[
	        {field:'username', title:'用户名', width:10},
	        {field:'nick_name', title:'昵称', width:30},
	        {field:'enabled', title:'激活', width:30},
	        {field:'action', title:'操作', width:20,   
	            formatter:function(value,row,index){
	            	var username = row.username ;
	            	var temp0 = '<a class="xg" href="javascript:void(0)" onclick="User.openAssignRole( '+index+',\''+username+'\')" >分配角色</a>&nbsp;';
	            	var temp1 = '<a class="xg" href="javascript:void(0)" onclick="User.editUser( '+index+',\''+username+'\')" >修改</a>&nbsp;';
	            	var temp2 = '<a class="del" href="javascript:void(0)" onclick="User.hideUser('+index+',\''+username+'\')" >删除</a>'; 
	            	return temp0+temp1+temp2;
	        	}
	       	}
		]],
	    loader:function( param, dg_s, dg_e ){
	    	var form = $("form[name='user_search_form']");
	    	if(param){
		    	if( param.page ){
		    		form.find("[name='page']").val(param.page);
		    	}
		    	if( param.pageNumber ){
		    		form.find("[name='pageSize']").val(param.pageNumber);
		    	}
	    	}
	    	var op = {
	    		url:"${path}/sysmanage/user/user_datagrid/json",dataType:"json",type:"post",
	    		success:function(json){ dg_s(json); },
	    		error:function(){ dg_e(); }
	    	};
	    	form.ajaxSubmit(op);
	    }
	});	
});
  
</script>

<div style="">
	<div id="user_search_div">
		<form name="user_search_form" action="" >
			<input name="page" value="1" type="hidden" />
			<input name="pageSize" value="20" type="hidden" />
			关键字:<input name="keyword" />
			<a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="$('#user_datagrid').datagrid('reload');" >easyui</a> 
		</form>
	</div>
	
	<table id="user_datagrid" title="用户列表" fitColumns="true" singleSelect="true"  >
	</table> 
	
</div> -->






